/*
 * @Author: your name
 * @Date: 2021-11-09 19:12:57
 * @LastEditTime: 2021-11-09 19:12:57
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\demo-work\src\utils\http.js
 */
import axios from "./request";

export const getUrl = (url, params) => {
    return axios.get(url, {
        params,
    });
};

export const postUrl = (url, params) => {
    return axios.post(url, params);
};

export const deleteUrl = (url, params) => {
    return axios.delete(url, {
        params,
    });
};

export const newDeleteUrl = (url, params) => {
    return axios.delete(url, {
        data: params,
    });
};

export const putUrl = (url, params) => {
    return axios.putUrl(url, params);
};